﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AMEE.MVVMBase;
using AMEE.MashineLearning.Geometry;

namespace Visualizer.ViewModels
{
    class RansacPlaneVM : ViewModelBase<RansacPlane>
    {
        #region Fields

        static readonly double DEFAULT_THRESHOLD = 0.1;
        static readonly double DEFAULT_PROBABILITY = 0.96;

        #endregion

        #region Properties

        //double _threshold;
        //public double Threshold {
        //    get
        //    {
        //        return _threshold;
        //    }
        //    set
        //    {
        //        _threshold = Math.Max(value, 0.0);
        //        Model = new nspBeRu.Geometry.RansacPlane(_threshold, _probability);
        //        base.OnPropertyChanged("Threshold");
        //    }
        //}

        //double _probability;
        //public double Probability
        //{
        //    get
        //    {
        //        return _probability;
        //    }
        //    set
        //    {
        //        _probability = Math.Max(Math.Min(1.0, value), 0.0);
        //        Model = new nspBeRu.Geometry.RansacPlane(_threshold, _probability);
        //        base.OnPropertyChanged("Threshold");
        //    }
        //}


        #endregion


        #region Constructor(s)

        public RansacPlaneVM() : base(new RansacPlane(DEFAULT_THRESHOLD, DEFAULT_PROBABILITY))
        {

        }

        #endregion


        #region Methods

        protected override void Initialize()
        {
            base.Initialize();
            //base.Model
        }

        #endregion
    }
}
